<?php
include "conn.php"; //数据库连接
if(isset($_POST['tel']) && isset($_POST['pass'])){
    $telphone = $_POST['tel'];
    $password = sha1($_POST['pass']);
    $result = $conn->query("select * from users where telphone='$telphone' and password='$password'");
    if($result->fetch_assoc()){
        echo true;//成功
    }else{
        echo false;
    }
}

